<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class SpecGoods extends Model
{
    /**
     * sku和spu的关系
     * 一个spu对应多个sku
     * sku属于spu
     */
    /**
     * @return \think\model\relation\BelongsTo
     */
    public function spu(){
        return $this->belongsTo(Goods::class,'goods_id','id');
    }
}
